import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../AppConfig/Config.dart';
import '../../http/NoLoadingGetApi.dart';

class CompanyProfile extends StatefulWidget {
  const CompanyProfile({super.key});

  @override
  State<CompanyProfile> createState() => _CompanyProfileState();
}

class _CompanyProfileState extends State<CompanyProfile> {
  Map dataMap={};
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    getCompanyAct();
  }
  void getCompanyAct(){
    NoLoadinggetApiManager.getData(
      context,
      "api/system/dev/dict/list",
      {'category':'BIZ','parentId':'1808424071131934722'},
          (responseData)  {
        setState(() {
          dataMap=responseData['data'][2];
        });

      },
    );
  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: MyColors.backgreyColor,
      appBar: AppBar(
        centerTitle: true,
        backgroundColor: Colors.white,
        leading: IconButton(icon: Icon(Icons.arrow_back_ios,color: Colors.black,),onPressed: (){Navigator.pop(context);},),
        title: Text("公司简介",style: TextStyle(fontWeight: FontWeight.w300,fontSize: 16.sp),),
      ),
      body:dataMap.isEmpty?Container():
          ListView(
            children: [
              Container(
                color: Colors.white,
                padding: EdgeInsets.only(left: 10.w,right: 10.w,top: 10.h),
                child:Text(dataMap['extJson'],style: TextStyle(color: Colors.black,fontSize: 14.sp),),
              )
            ],
          )

    );
  }
}
